package com.scm.entity.response;

public class ResponseMessage
{
    private Integer code;
    private String message;
    private Object data;

    public void setCode(Integer code)
    {
        this.code = code;
    }

    public void setMessage(String message)
    {
        this.message = message;
    }

    public void setData(Object data)
    {
        this.data = data;
    }

    public boolean equals(Object o)
    {
        if (o == this) {
            return true;
        }
        if (!(o instanceof ResponseMessage)) {
            return false;
        }
        ResponseMessage other = (ResponseMessage)o;
        if (!other.canEqual(this)) {
            return false;
        }
        Object this$code = getCode();Object other$code = other.getCode();
        if (this$code == null ? other$code != null : !this$code.equals(other$code)) {
            return false;
        }
        Object this$message = getMessage();Object other$message = other.getMessage();
        if (this$message == null ? other$message != null : !this$message.equals(other$message)) {
            return false;
        }
        Object this$data = getData();Object other$data = other.getData();return this$data == null ? other$data == null : this$data.equals(other$data);
    }

    protected boolean canEqual(Object other)
    {
        return other instanceof ResponseMessage;
    }

    public int hashCode()
    {
        int PRIME = 59;int result = 1;Object $code = getCode();result = result * 59 + ($code == null ? 43 : $code.hashCode());Object $message = getMessage();result = result * 59 + ($message == null ? 43 : $message.hashCode());Object $data = getData();result = result * 59 + ($data == null ? 43 : $data.hashCode());return result;
    }

    public String toString()
    {
        return "ResponseMessage(code=" + getCode() + ", message=" + getMessage() + ", data=" + getData() + ")";
    }

    public Integer getCode()
    {
        return this.code;
    }

    public String getMessage()
    {
        return this.message;
    }

    public Object getData()
    {
        return this.data;
    }
}
